package com.zhu.pre.service.impl;

import com.sanploy.common.domain.Banner;
import com.zhu.pre.mapper.MBannerMapper;
import com.zhu.pre.service.MBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zhu yingzhi on 2017/10/12.
 * @author yingzhi zhu
 * 手机轮播图 逻辑处理实现类
 */
@Service
public class MBannerServiceImpl implements MBannerService {

    @Autowired
    private MBannerMapper bannerMapper;

    @Override
    public List<Banner> findAllBanner() {
        return bannerMapper.findAllBanner();
    }

    @Override
    public Banner findById(Long id) {
        return bannerMapper.findById(id);
    }
}
